Efficient and Comfortable Error Recovery in Recursive Descent Parsers
نویسنده
چکیده
This paper describes the interesting features of the recursive descent parser generator Ell from the user’s point of view. Some of the interesting implementation aspects are discussed. The generated parsers are extremely fast and run at speed of 55,000 tokens per second or 900,000 lines per minute on a MC 68020 processor. The outstanding features of Ell are the L-attribution mechanism, its ability to handle non LL(1) grammars, and its comfortable error handling, which includes error reporting, recovery, and repair.
منابع مشابه
Taurus, a Parser Generator Producing Error Recovering Parsers in Scheme
A parser generator producing recursive descent LL(1) parsers was implemented. The generated parsers include automatic syntactic error recovery and error reporting. The i mplementation language for both the parser generator and the generated parsers is Scheme.
متن کاملSome Topics in Parser Generation
An algorithm has been developed that generates an error-correcting recursive-descent syntax analyzer (parser) with no backtrack from an extended context-free grammar. A program, LLGEN, has been written to implement this algorithm. The paper discusses three aspects of the algorithm: the support of separate compilation, the mechanism for the static or dynamic resolving of conflicts, and the error...
متن کاملRecursive Ascent-Descent Parsing
Generalized left-corner parsing was originally presented as a technique for generating a parser for the SLR(1) class of grammars but with far fewer states than the SLR(1) parser. This paper modi es and extends the formulation of left-corner parsers so that it is possible to apply the technique to the LALR(1) and LR(1) classes of grammars. It is further shown that left-corner parsers can be conv...
متن کاملDCGs + Memoing = Packrat Parsing but Is It Worth It?
Packrat parsing is a newly popular technique for efficiently implementing recursive descent parsers. Packrat parsing avoids the potential exponential costs of recursive descent parsing with backtracking by ensuring that each production rule in the grammar is tested at most once against each position in the input stream. This paper argues that (a) packrat parsers can be trivially implemented usi...
متن کاملMonadic Parsing in Haskell
This paper is a tutorial on defining recursive descent parsers in Haskell. In the spirit of one-stop shopping , the paper combines material from three areas into a single source. The three areas are functional parsers (Burge, 1975; Wadler, 1985; Hutton, 1992; Fokker, 1995), the use of monads to structure functional programs (Wadler, 1990, 1992a, 1992b), and the use of special syntax for monadic...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Structured Programming
دوره 11 شماره
صفحات -
تاریخ انتشار 1990